/*
 Copyright (c) 2024 Broin All rights reserved.
 Use of this source code is governed by a BSD-style
 license that can be found in the LICENSE file.
 */

#ifndef POLICY_MASK__H
#define POLICY_MASK__H

/* 文件策略蒙板集合：创建、读、写、执行、删除 */
#define FILE_PERMISSION_CREATE 0x00000001
#define FILE_PERMISSION_READ 0x00000002
#define FILE_PERMISSION_WRITE 0x00000004
#define FILE_PERMISSION_EXEC 0x00000008
#define FILE_PERMISSION_DELETE 0x00000010

/* 文件夹策略蒙板集合：创建、删除 */
#define DIR_PERMISSION_MAKE 0x00000020
#define DIR_PERMISSION_UNLINK 0x00000040

/* 网络策略蒙板集合：创建、握手、监听、删除*/
#define NETWORK_PERMISSION_SOCKET_CREATE 0x00000080
#define NETWORK_PERMISSION_SOCKET_ACCEPT 0x00000100
#define NETWORK_PERMISSION_SOCKET_LISTEN 0x00000200
#define NETWORK_PERMISSION_SOCKET_DELETE 0x00000400

#endif //! POLICY_MASK__H